package com.walker.taogong.datamodel;

public enum Sex
{

    Male('M'),
    Female('F');
    
    private char type;
    private Sex(char c)
    {       
        this.type = c;
    }
    public char getType()
    {
        return type;
    }

    public static Sex valueOf(char c)
    {
        for(Sex t : Sex.values())
            if(t.type == c)
                return t;
        
        return Male;
    }

}
